<template>
	<view class="feedback">
		<u-navbar bgColor="#fff">
			<view slot="left" class="align-center">
				<image @click="$tools.back()" src="@/static/login/back3.png" style="width: 36rpx; height: 36rpx"></image>
			</view>
			<view slot="center">
				<view style="font-weight: 600; font-size: 36rpx; color: #333333">意见反馈</view>
			</view>
		</u-navbar>
		<view style="">
			<view style="padding: 120rpx 32rpx 140rpx">
				<u--textarea v-model="value" placeholder="请输入内容" height="400" count></u--textarea>
			</view>
			<view class="flex-center1">
				<view
					@click="feedback"
					class="flex-center1"
					style="font-weight: 600; font-size: 32rpx; color: #ffffff; width: 640rpx; height: 96rpx; background: #1365f9; border-radius: 16rpx"
				>
					提交
				</view>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return { value: '' };
	},
	methods: {
		feedback() {
			this.$request('front/user/userFeedback', { content: this.value }).then((res) => {
				this.$tools.toast('操作成功');
				setTimeout(() => {
					this.$tools.back();
				}, 1000);
			});
		}
	}
};
</script>

<style lang="less" scoped>
.feedback {
	padding-top: 180rpx;
}
</style>
